package com.urms.mapper;

import com.urms.entity.QueryRoleCondition;
import com.urms.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RoleMapper {
    List<Role> selectAll();

    Integer insertRole(@Param("role") Role role);

    Integer deleteRoleById(@Param("roleId") Integer roleId);

    List<Role> selectRoleByForm(@Param("qrc") QueryRoleCondition qrc);

    Integer deleteRoleList(@Param("roleIds") Integer[] roleIds);

    List<Role> roleSelectByForm(QueryRoleCondition qrc);

    Integer roleUpdate(Role role);
}
